include<BOSL2/std.scad>
include<BOSL2/gears.scad>
include<tools/util.scad>
$fn=100;
mod=1.5;
bteeth=26;
pr_26 = pitch_radius(mod=mod, teeth=bteeth);
echo(pr_26);
difference(){
    bevel_gear(mod=mod, teeth=bteeth, mate_teeth=bteeth,slices=12, anchor="apex", orient=RIGHT);
    translate([-pr_26,0,0])cube([15,10,10],center=true);
}
difference(){
    bevel_gear(mod=mod, teeth=bteeth, mate_teeth=bteeth, right_handed=true,slices=12, anchor="apex", backing=3, spin=180/bteeth);
    translate([0,0,-pr_26])cube([10,10,15],center=true);
}